#pragma once
#include <string>
#include "sqlite_orm/sqlite_orm.h"

struct VideoMetaData {
	int id;
	std::string name;
	std::string path;
	int size;
};

static std::string dbfile("d:/art/server/meta.db");
using namespace sqlite_orm;
static auto storage = make_storage
(dbfile,
    make_table("video_metadata",
        make_column("id", &VideoMetaData::id, primary_key().autoincrement(), unique()),
        make_column("name", &VideoMetaData::name),
        make_column("path", &VideoMetaData::path),
        make_column("size", &VideoMetaData::size)
        )
);

